<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.statistics.distributions.Uniform&rdquo;</title>
        </head>
        <body><h1 class="class">Class s.s.d.Uniform(<a href="sympy.statistics.distributions.ContinuousProbability.html">ContinuousProbability</a>):</h1><span id="part">Part of <a href="sympy.statistics.distributions.html">sympy.statistics.distributions</a></span><div class="toplevel"><div><p>Uniform(a, b) represents a probability distribution with uniform 
probability density on the interval [a, b] and zero density everywhere 
else.</p>
</div></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.__init__">__init__</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.__repr__">__repr__</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.pdf">pdf</a></td><td><div><p>Return the probability density function as an expression in x</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.cdf">cdf</a></td><td><div><p>Return the cumulative density function as an expression in x</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform._random">_random</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.confidence">confidence</a></td><td><div><p>Generate a symmetric (p*100)% confidence interval.</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.statistics.distributions.Uniform.fit">fit</a></td><td><div><p>Create a uniform distribution fit to the mean and standard</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.__init__">__init__(self, a, b):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.__repr__">__repr__(self):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.pdf">pdf(s, x):</a></div>
            <div class="functionBody"><div><p>Return the probability density function as an expression in x</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.cdf">cdf(s, x):</a></div>
            <div class="functionBody"><div><p>Return the cumulative density function as an expression in x</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform._random">_random(s):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.confidence">confidence(s, p):</a></div>
            <div class="functionBody"><div><p>Generate a symmetric (p*100)% confidence interval.</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>U = Uniform(1, 2)
<span class="py-prompt">&gt;&gt;&gt; </span>U.confidence(1)
<span class="py-output">(1, 2)</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>U.confidence(Rational(1,2))
<span class="py-output">(5/4, 7/4)</span></pre>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.statistics.distributions.Uniform.fit">fit(sample):</a></div>
            <div class="functionBody"><div><p>Create a uniform distribution fit to the mean and standard deviation of 
the given distribution or sample.</p>
</div></div>
            </div></body>
        